Optimal. Leaf size=192 \[ -\frac {7 a^3 (10 A b-9 a B) \sqrt {x} \sqrt {a+b x}}{128 b^5}+\frac {7 a^2 (10 A b-9 a B) x^{3/2} \sqrt {a+b x}}{192 b^4}-\frac {7 a (10 A b-9 a B) x^{5/2} \sqrt {a+b x}}{240 b^3}+\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}+\frac {7 a^4 (10 A b-9 a B) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )}{128 b^{11/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 192, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {81, 52, 65, 223,
212} \begin {gather*} \frac {7 a^4 (10 A b-9 a B) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )}{128 b^{11/2}}-\frac {7 a^3 \sqrt {x} \sqrt {a+b x} (10 A b-9 a B)}{128 b^5}+\frac {7 a^2 x^{3/2} \sqrt {a+b x} (10 A b-9 a B)}{192 b^4}-\frac {7 a x^{5/2} \sqrt {a+b x} (10 A b-9 a B)}{240 b^3}+\frac {x^{7/2} \sqrt {a+b x} (10 A b-9 a B)}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 81
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {x^{7/2} (A+B x)}{\sqrt {a+b x}} \, dx &=\frac {B x^{9/2} \sqrt {a+b x}}{5 b}+\frac {\left (5 A b-\frac {9 a B}{2}\right ) \int \frac {x^{7/2}}{\sqrt {a+b x}} \, dx}{5 b}\\ &=\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}-\frac {(7 a (10 A b-9 a B)) \int \frac {x^{5/2}}{\sqrt {a+b x}} \, dx}{80 b^2}\\ &=-\frac {7 a (10 A b-9 a B) x^{5/2} \sqrt {a+b x}}{240 b^3}+\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}+\frac {\left (7 a^2 (10 A b-9 a B)\right ) \int \frac {x^{3/2}}{\sqrt {a+b x}} \, dx}{96 b^3}\\ &=\frac {7 a^2 (10 A b-9 a B) x^{3/2} \sqrt {a+b x}}{192 b^4}-\frac {7 a (10 A b-9 a B) x^{5/2} \sqrt {a+b x}}{240 b^3}+\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}-\frac {\left (7 a^3 (10 A b-9 a B)\right ) \int \frac {\sqrt {x}}{\sqrt {a+b x}} \, dx}{128 b^4}\\ &=-\frac {7 a^3 (10 A b-9 a B) \sqrt {x} \sqrt {a+b x}}{128 b^5}+\frac {7 a^2 (10 A b-9 a B) x^{3/2} \sqrt {a+b x}}{192 b^4}-\frac {7 a (10 A b-9 a B) x^{5/2} \sqrt {a+b x}}{240 b^3}+\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}+\frac {\left (7 a^4 (10 A b-9 a B)\right ) \int \frac {1}{\sqrt {x} \sqrt {a+b x}} \, dx}{256 b^5}\\ &=-\frac {7 a^3 (10 A b-9 a B) \sqrt {x} \sqrt {a+b x}}{128 b^5}+\frac {7 a^2 (10 A b-9 a B) x^{3/2} \sqrt {a+b x}}{192 b^4}-\frac {7 a (10 A b-9 a B) x^{5/2} \sqrt {a+b x}}{240 b^3}+\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}+\frac {\left (7 a^4 (10 A b-9 a B)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\sqrt {x}\right )}{128 b^5}\\ &=-\frac {7 a^3 (10 A b-9 a B) \sqrt {x} \sqrt {a+b x}}{128 b^5}+\frac {7 a^2 (10 A b-9 a B) x^{3/2} \sqrt {a+b x}}{192 b^4}-\frac {7 a (10 A b-9 a B) x^{5/2} \sqrt {a+b x}}{240 b^3}+\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}+\frac {\left (7 a^4 (10 A b-9 a B)\right ) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {a+b x}}\right )}{128 b^5}\\ &=-\frac {7 a^3 (10 A b-9 a B) \sqrt {x} \sqrt {a+b x}}{128 b^5}+\frac {7 a^2 (10 A b-9 a B) x^{3/2} \sqrt {a+b x}}{192 b^4}-\frac {7 a (10 A b-9 a B) x^{5/2} \sqrt {a+b x}}{240 b^3}+\frac {(10 A b-9 a B) x^{7/2} \sqrt {a+b x}}{40 b^2}+\frac {B x^{9/2} \sqrt {a+b x}}{5 b}+\frac {7 a^4 (10 A b-9 a B) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a+b x}}\right )}{128 b^{11/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.26, size = 138, normalized size = 0.72 \begin {gather*} \frac {\sqrt {b} \sqrt {x} \sqrt {a+b x} \left (945 a^4 B-210 a^3 b (5 A+3 B x)+96 b^4 x^3 (5 A+4 B x)+28 a^2 b^2 x (25 A+18 B x)-16 a b^3 x^2 (35 A+27 B x)\right )+105 a^4 (-10 A b+9 a B) \log \left (-\sqrt {b} \sqrt {x}+\sqrt {a+b x}\right )}{1920 b^{11/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 260, normalized size = 1.35
method | result | size |
risch | \(-\frac {\left (-384 B \,x^{4} b^{4}-480 A \,b^{4} x^{3}+432 B a \,b^{3} x^{3}+560 A a \,b^{3} x^{2}-504 B \,a^{2} b^{2} x^{2}-700 A \,a^{2} b^{2} x +630 B \,a^{3} b x +1050 A \,a^{3} b -945 a^{4} B \right ) \sqrt {b x +a}\, \sqrt {x}}{1920 b^{5}}+\frac {\left (\frac {35 a^{4} \ln \left (\frac {\frac {a}{2}+b x}{\sqrt {b}}+\sqrt {b \,x^{2}+a x}\right ) A}{128 b^{\frac {9}{2}}}-\frac {63 a^{5} \ln \left (\frac {\frac {a}{2}+b x}{\sqrt {b}}+\sqrt {b \,x^{2}+a x}\right ) B}{256 b^{\frac {11}{2}}}\right ) \sqrt {\left (b x +a \right ) x}}{\sqrt {b x +a}\, \sqrt {x}}\) | \(186\) |
default | \(\frac {\sqrt {x}\, \sqrt {b x +a}\, \left (768 B \,b^{\frac {9}{2}} x^{4} \sqrt {\left (b x +a \right ) x}+960 A \,b^{\frac {9}{2}} x^{3} \sqrt {\left (b x +a \right ) x}-864 B a \,b^{\frac {7}{2}} x^{3} \sqrt {\left (b x +a \right ) x}-1120 A a \,b^{\frac {7}{2}} x^{2} \sqrt {\left (b x +a \right ) x}+1008 B \,a^{2} b^{\frac {5}{2}} x^{2} \sqrt {\left (b x +a \right ) x}+1400 A \,b^{\frac {5}{2}} \sqrt {\left (b x +a \right ) x}\, a^{2} x -1260 B \,b^{\frac {3}{2}} \sqrt {\left (b x +a \right ) x}\, a^{3} x +1050 A \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a^{4} b -2100 A \,b^{\frac {3}{2}} \sqrt {\left (b x +a \right ) x}\, a^{3}-945 B \ln \left (\frac {2 \sqrt {\left (b x +a \right ) x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a^{5}+1890 B \sqrt {b}\, \sqrt {\left (b x +a \right ) x}\, a^{4}\right )}{3840 b^{\frac {11}{2}} \sqrt {\left (b x +a \right ) x}}\) | \(260\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 252, normalized size = 1.31 \begin {gather*} \frac {\sqrt {b x^{2} + a x} B x^{4}}{5 \, b} - \frac {9 \, \sqrt {b x^{2} + a x} B a x^{3}}{40 \, b^{2}} + \frac {\sqrt {b x^{2} + a x} A x^{3}}{4 \, b} + \frac {21 \, \sqrt {b x^{2} + a x} B a^{2} x^{2}}{80 \, b^{3}} - \frac {7 \, \sqrt {b x^{2} + a x} A a x^{2}}{24 \, b^{2}} - \frac {21 \, \sqrt {b x^{2} + a x} B a^{3} x}{64 \, b^{4}} + \frac {35 \, \sqrt {b x^{2} + a x} A a^{2} x}{96 \, b^{3}} - \frac {63 \, B a^{5} \log \left (2 \, b x + a + 2 \, \sqrt {b x^{2} + a x} \sqrt {b}\right )}{256 \, b^{\frac {11}{2}}} + \frac {35 \, A a^{4} \log \left (2 \, b x + a + 2 \, \sqrt {b x^{2} + a x} \sqrt {b}\right )}{128 \, b^{\frac {9}{2}}} + \frac {63 \, \sqrt {b x^{2} + a x} B a^{4}}{128 \, b^{5}} - \frac {35 \, \sqrt {b x^{2} + a x} A a^{3}}{64 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.16, size = 296, normalized size = 1.54 \begin {gather*} \left [-\frac {105 \, {\left (9 \, B a^{5} - 10 \, A a^{4} b\right )} \sqrt {b} \log \left (2 \, b x + 2 \, \sqrt {b x + a} \sqrt {b} \sqrt {x} + a\right ) - 2 \, {\left (384 \, B b^{5} x^{4} + 945 \, B a^{4} b - 1050 \, A a^{3} b^{2} - 48 \, {\left (9 \, B a b^{4} - 10 \, A b^{5}\right )} x^{3} + 56 \, {\left (9 \, B a^{2} b^{3} - 10 \, A a b^{4}\right )} x^{2} - 70 \, {\left (9 \, B a^{3} b^{2} - 10 \, A a^{2} b^{3}\right )} x\right )} \sqrt {b x + a} \sqrt {x}}{3840 \, b^{6}}, \frac {105 \, {\left (9 \, B a^{5} - 10 \, A a^{4} b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {b x + a} \sqrt {-b}}{b \sqrt {x}}\right ) + {\left (384 \, B b^{5} x^{4} + 945 \, B a^{4} b - 1050 \, A a^{3} b^{2} - 48 \, {\left (9 \, B a b^{4} - 10 \, A b^{5}\right )} x^{3} + 56 \, {\left (9 \, B a^{2} b^{3} - 10 \, A a b^{4}\right )} x^{2} - 70 \, {\left (9 \, B a^{3} b^{2} - 10 \, A a^{2} b^{3}\right )} x\right )} \sqrt {b x + a} \sqrt {x}}{1920 \, b^{6}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^{7/2}\,\left (A+B\,x\right )}{\sqrt {a+b\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________